package org.sy.lab.多线程基础._1_管理._7_工厂类;

import java.util.concurrent.ThreadFactory;

public class MyThreadFactory implements ThreadFactory {

	@Override
	public Thread newThread(Runnable r) {
		
		System.out.println("工厂创建线程");
		Thread thread = new Thread(r);
		return thread;
	}
}
